package com.hqq.behaviour.template_method;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * SubtleMethod
 * Created by heqianqian on 2017/6/19.
 */
public class SubtleMethod extends StealingMethod {

    private static final Logger LOGGER = LoggerFactory.getLogger(SubtleMethod.class);

    @Override
    public String pickTarget() {
        return "shop keeper";
    }

    @Override
    public void confuseTarget(String target) {
        LOGGER.info("Approach the {} with tears running and hug him!", target);
    }

    @Override
    public void stealTheItem(String target) {
        LOGGER.info("While in close contact grab the {}'s wallet.", target);
    }
}
